<?php
/**
 * Created by litong on Date: 2018/12/22 0022 下午 5:15
 */
$x=10;$y=20;
function addtion(){
  $GLOBALS["z"]=$GLOBALS['x']+$GLOBALS['y'];
}
addtion();
echo "$z";
?>